package com.jmpt.fangbohui.bean;

import com.jmpt.fangbohui.bean.LoginBean.Retval;

public class LoginBean
{
	public String done;
	public String msg;
	public Retval retval;
	
	//new LoginBean(UserName, UserId, AgentName, AgentId, type);
	public LoginBean(String userName,String userId,String agentName,String agentId,int type){
		this.retval = new Retval(userName,userId,agentName,agentId,type);
	}
	
	@Override
	public String toString()
	{
		return "NewLoginBean [done=" + done + ", msg=" + msg + ", retval="
				+ retval + "]";
	}


	public String getDone()
	{
		return done;
	}


	public void setDone(String done)
	{
		this.done = done;
	}


	public String getMsg()
	{
		return msg;
	}


	public void setMsg(String msg)
	{
		this.msg = msg;
	}


	public Retval getRetval()
	{
		return retval;
	}


	public void setRetval(Retval retval)
	{
		this.retval = retval;
	}


	public class Retval{
		private String UserId;
		private String UserName;
		private String flag;
		private String sessionid;
		private String AgentName;
		private String AgentId;
		private int type;	//1-客户 2-Broker
		
		public Retval(String userName,String userId,String agentName,String agentId,int type){
			this.UserName = userName;
			this.UserId = userId;
			this.AgentName = agentName;
			this.AgentId = agentId;
			this.type = type;
		}
		public String getAgentName()
		{
			return AgentName;
		}
		public void setAgentName(String agentName)
		{
			AgentName = agentName;
		}
		public String getAgentId()
		{
			return AgentId;
		}
		public void setAgentId(String agentId)
		{
			AgentId = agentId;
		}
		public int getType()
		{
			return type;
		}
		public void setType(int type)
		{
			this.type = type;
		}
		public String getUserId()
		{
			return UserId;
		}
		public void setUserId(String userId)
		{
			UserId = userId;
		}
		public String getUserName()
		{
			return UserName;
		}
		public void setUserName(String userName)
		{
			UserName = userName;
		}
		public String getFlag()
		{
			return flag;
		}
		public void setFlag(String flag)
		{
			this.flag = flag;
		}
		public String getSessionid()
		{
			return sessionid;
		}
		public void setSessionid(String sessionid)
		{
			this.sessionid = sessionid;
		}
		@Override
		public String toString()
		{
			return "Retval [UserId=" + UserId + ", UserName=" + UserName
					+ ", flag=" + flag + ", sessionid=" + sessionid + "]";
		}
		
	}
}
